﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BL
{
    class ResultsDataSet
    {
        private DataSet m_ds;

        public ResultsDataSet(DataSet ds)
        { 
            m_ds = ds;
        }
        public int InsertedId(DataRow dr) 
        {
            int id = Convert.ToInt32(dr["LastId"]);
            if (id > 0)
                return id;
            else
                return 0;
        }

        public int ActionStatus()
        { 
             DataTable dt = m_ds.Tables[0];
             DataRow dr = dt.Rows[0];

             return InsertedId(dr);
            }
                                                                    
  

    }

}
